import tensorflow as tf

if __name__ == '__main__':
    model_file = '/home/alpha/ML/voc_2007_trainval+voc_2012_trainval/res101_faster_rcnn_iter_110000.ckpt.meta'
    weight_file = '/home/alpha/ML/voc_2007_trainval+voc_2012_trainval/res101_faster_rcnn_iter_110000.ckpt'
    # weight_file = '/home/alpha/ML/voc_2007_trainval+voc_2012_trainval'

    saver = tf.train.import_meta_graph(model_file)

    graph = tf.get_default_graph()

    with tf.Session() as sess:
        saver.restore(sess, weight_file)